home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Williams Sonoma Guide to Good Cooking
/
Williams Sonoma Guide to Good Cooking.iso
/
pc
/
SETUP32
/
E_REG
/
include.js
< prev
next >
Wrap
Text File
|
2002-10-23
|
950b
|
61 lines
// Normalize = change to lower case
function Normalize(word)
{
return word.toLowerCase();
}
// Get key
function GetKey(key)
{
return window.external.GetConfigInfo('page\\' + key);
}
function GetBrandKey(key)
{
var brand = window.external.GetConfigInfo('Product_Identification\\Branding');
if (brand == '')
{
brand = 'Broderbund_Branding';
}
return window.external.GetConfigInfo(brand + '\\' + key);
}
// Get key
function GetKeyD(key, def)
{
var val = GetKey(key);
if (val != '')
return val;
else
return def;
}
function GetBrandKeyD(key, def)
{
var val = GetBrandKey(key);
if (val != '')
return val;
else
return def;
}
// Get Normalized key
function GetVariable(key)
{
return Normalize(GetKey(key));
}
function GetContext()
{
return window.external.GetContext();
}
function isContext(context)
{
return (Normalize(GetContext()) == Normalize(context));
}